<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);

// Get the form class and construct a login form
require_once dirname(__FILE__).'/formalize.class.php';

$formalize = new Formalize('post', 'application/x-www-form-urlencoded');
$formalize->add('text', 'username', 'Username', true);
$formalize->add('password', 'password', 'Password', true);

// Set different container html for the submit button
$formalize->fieldtemplate = '<tr><td>&nbsp;</td><td>[_FIELD_]</td></tr>';
$formalize->add('submit', 'login');

echo $formalize->render();